<?php
/**
 * User: YL
 * Date: 2019/6/10
 */

namespace restful\utils;

use Predis\Client;
use restful\traits\InstanceTrait;

class RedisNoPrefix
{
    use InstanceTrait;

    protected $connect;

    private function __construct()
    {
        $option = Env::get('redis');
        unset($option['prefix']);
        $this->connect = new Client($option);
    }

    /**
     * getConnect
     * @return Client
     */
    public function getConnect()
    {
        return $this->connect;
    }
}